package com.tuanzi.loan.web.lazy.application;

import com.tuanzi.loan.business.service.application.LoanApplicationExportGroupService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.application.LoanApplicationExportGroupRequest;
import com.tuanzi.loan.vo.response.application.LoanApplicationExportGroupResponse;
import org.springframework.data.domain.Page;

/**
 * @Auther: hequnayu
 * @Date: 2019/7/30 15:27
 * @Description:
 */
public class LoanApplicationExportGroupLazyDataModel extends BaseLazyDataModel<LoanApplicationExportGroupRequest, LoanApplicationExportGroupResponse> {
    private static final long serialVersionUID = -1825851342238577864L;
    private LoanApplicationExportGroupService groupService = SpringContextHolder.getBean(LoanApplicationExportGroupService.class);
    public LoanApplicationExportGroupLazyDataModel(LoanApplicationExportGroupRequest loanBannerGroupRequest) {
        super(loanBannerGroupRequest);
    }
    @Override
    protected Page<LoanApplicationExportGroupResponse> doLoad(PageSearcher<LoanApplicationExportGroupRequest> pageSearcher) {
        return groupService.list(pageSearcher);
    }
}
